//
// Created by lfm on 2025/2/24.
//
//#include <iostream>
//
//using  namespace std;
//int& test01()
//{
//    int a = 10;
//    return a;
//}
//int& test02()
//{
//    static int b = 20;//静态变量位于全局区
//    return b;
//}
////int main()
////{
////    int &res1 = test01();
////    cout << "res1 = " <<res1 << endl;
////    cout << "res1 = " <<res1 << endl;
////    //第一次结果正确第二次错误
////
////    int &res2 = test02();
////    cout << "res2 = " <<res2 << endl;
////    cout << "res2 = " <<res2 << endl;
////
////    return 0;
////}